import os as o


def a(b):
    c = []

    try:
        d = o.listdir(b)

        for e in d:
            f = o.path.join(b, e)

            if o.path.isdir(f):
                for g in o.listdir(f):
                    h = o.path.join(f, g)
                    if o.path.isfile(h):
                        i = o.path.relpath(h, b)
                        c.append(i)

    except FileNotFoundError:
        print(f"The directory {b} does not exist.")

    return c


j = '../窗口弹出/综合受理/3.py'
k = a(j)
for l in k:
    print(l)
